package com.springboot.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.quartz.QuartzJobBean;

import java.time.LocalDate;

public class UserAddJob extends QuartzJobBean {

    private static Logger logger = LoggerFactory.getLogger(UserAddJob.class);

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {

        logger.info("User添加完成后执行任务，任务时间：{}", LocalDate.now());

    }
}
